//
//  PZRClickTableViewCell.m
//  Moment
//
//  Created by pang on 16/1/5.
//  Copyright © 2016年 片刻. All rights reserved.
//

#import "PZRClickTableViewCell.h"

@implementation PZRClickTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}
-(void)create
{
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 60)];
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    [self.contentView addSubview:_titleLabel];
    
    self.showImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 60, SCREEN_WIDTH/3, 90)];
    [self.contentView addSubview:_showImageView];
    
    self.detailLabel = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/3, 60, SCREEN_WIDTH/3*2, 90)];
    self.detailLabel.numberOfLines = 0;
    [self.contentView addSubview:_detailLabel];
    
    
    
    
    
    
    
}
-(void)setAClick1:(PZRClick1 *)aClick1
{
    if (_aClick1 != aClick1) {
        _aClick1 = aClick1;
    }
    self.titleLabel.text = aClick1.title;
    self.detailLabel.text = aClick1.content;
    NSURL *url = [NSURL URLWithString:aClick1.coverimg];
    [self.showImageView sd_setImageWithURL:url];
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
